<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:32:"themes/paiban/portal\\index.html";i:1524814429;s:82:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\head.html";i:1524722303;s:86:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\function.html";i:1524709905;s:81:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\nav.html";i:1524790448;s:84:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\footer.html";i:1524709395;s:85:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\scripts.html";i:1524711386;}*/ ?>
<!DOCTYPE html>
<html>

	<head>
		<title>一键排版首页</title>
		
<?php 
/*可以加多个方法哟！*/
function _sp_helloworld(){
	echo "牛逼啊!";
}

function _sp_helloworld2(){
	echo "hello ThinkCMF2!";
}


function _sp_helloworld3(){
	echo "hello ThinkCMF3!";
}

 ?>
<meta charset="UTF-8">
<meta name="keywords" content="关键字">
<meta name="description" content="网站描述">
<meta name="author" content="edit by Binggen">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="/themes/paiban/public/assets/css/reset.css"/>
<link rel="stylesheet" href="/themes/paiban/public/assets/layui/css/layui.css">
<link rel="stylesheet" href="/themes/paiban/public/assets/css/index.css">
<link rel="shortcut icon" href="favicon.ico">
	</head>
	<body>
		<div class="pages">
			
	<nav class="header">
		<div class="wrapper">
			<a class="logo thunbnail-h" href="/"><img src="/themes/paiban/public/assets/images/logo.png" alt="一键排版系统"></a>
			<?php

function __parse_navigation9bdd774894225c09aae2acbce9c71f74($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigation9bdd774894225c09aae2acbce9c71f74';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): ?>
    <li class="menu-item menu-item-level-<?php echo $level; ?>">
    
					<a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>"><?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?></a>
				
    </li>
<?php endif; if(!empty($menu['children'])): ?>
    <li class="dropdown dropdown-custom dropdown-custom-level-<?php echo $level; ?>">
        
					<a href="#" class="dropdown-toggle dropdown-toggle-<?php echo $level; ?>" data-toggle="dropdown">
						<?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?><span class="caret"></span>
					</a>
				
        <ul class="dropdown-menu dropdown-menu-level-<?php echo $level; ?>">
            <?php 
            $mLevel=$level+1;
             ?>
            <?php echo $_parse_navigation_func_name($menu['children'],$mLevel); ?>
        </ul>
    </li>
<?php endif; endforeach; endif; else: echo "" ;endif; 
}

    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('1',0);
if('ul'==''): ?>
    <?php echo __parse_navigation9bdd774894225c09aae2acbce9c71f74($menus); else: ?>
    <ul id="navigation" class="navigation">
        <?php echo __parse_navigation9bdd774894225c09aae2acbce9c71f74($menus); ?>
    </ul>
<?php endif; ?>

			<div class="login-mark-box">
				<!--<button class="login-btn" type="button">登录</button>-->
			</div>
		</div>
	</nav>



			<div class="content">
				<div class="banner">
					<div class="banner-con">
						<div class="layui-carousel" id="test2">
							<div carousel-item="">
								<div><img src="/themes/paiban/public/assets/images/banner.jpg" alt="图书、学术期刊智能排版编辑平台"></div>
							</div>
						</div>
					</div>
					<div class="wrapper tcenter">
						<h1>图书、学术期刊、毕业论文&nbsp;&nbsp;智能编辑排版平台</h1>
						<h2>便捷、快速、高效、安全稳定和人性化的操作模式</h2>
						<a href="" class="to-detail">查看详情</a>
					</div>
				</div>

				<!--一键排版导航-->
				<div class="bg-grey section">
					<div class="wrapper">
						<div class="htitle">
							<h3>一键排版</h3>
							<h4>quickformat</h4>
						</div>
						<ul class="clearfix format-nav">
							<li>
								<a href="http://qikan.paiban.net.cn/" target="_blank">
									<div class="nav-icons">
										<i class="icon icon-qikan"></i>
									</div>
									<h3>学术期刊排版</h3>
									<span>Periodical</span>
								</a>
							</li>
							<li><a href="http://qikan.paiban.net.cn/" target="_blank">
								<div class="nav-icons">
									<i class="icon icon-book"></i>
								</div>
								<h3>学术图书排版</h3>
								<span>books</span></a></li>
							<li><a href="http://qikan.paiban.net.cn/" target="_blank">
								<div class="nav-icons">
									<i class="icon icon-paper"></i>`
								</div>
								<h3>毕业论文排版</h3>
								<span>thesis</span></a></li>
						</ul>
					</div>
				</div>
				<!--一键排版导航END-->

				<!--重要通知-->
				<div class="index-news-list">
					<div class="wrapper section clearfix">
						<div class="htitle">
							<h3>重要通知</h3>
							<h4>Important notifications</h4>
						</div>
						<?php 
							$where=[
							'post.create_time'=>['egt',0]
							];
							$category_ids=1;
						 ?>
						<div class="left-news">
							<?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => "",
    'limit'   => '1',
    'order'   => 'post.published_time DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>$category_ids
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

								<a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$category_ids)); ?>">
									<!--调用文章的相册-->
									<?php if(!(empty($vo['more']['photos']) || (($vo['more']['photos'] instanceof \think\Collection || $vo['more']['photos'] instanceof \think\Paginator ) && $vo['more']['photos']->isEmpty()))): ?>
										<div class="thumbnail-w">
											<?php if(is_array($vo['more']['photos']) || $vo['more']['photos'] instanceof \think\Collection || $vo['more']['photos'] instanceof \think\Paginator): if( count($vo['more']['photos'])==0 ) : echo "" ;else: foreach($vo['more']['photos'] as $key=>$photo): ?>
												<img src="<?php echo cmf_get_image_url($photo['url']); ?>" alt="<?php echo $photo['name']; ?>">
											<?php endforeach; endif; else: echo "" ;endif; ?>
										</div>
									<?php endif; ?>
									<h3><?php echo $vo['post_title']; ?></h3>
									<p><?php echo $vo['post_excerpt']; ?><span>【详情】</span></p>
								</a>
							
<?php endforeach; endif; else: echo "" ;endif; ?>
						</div>

						<div class="right-news">
							<a class="more" href="/portal/list/index/id/1.html">more</a>
							<ul class="right-news-list">
								<?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => $where,
    'limit'   => '5',
    'order'   => 'post.create_time DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>$category_ids
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

									<li>
										<a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$category_ids)); ?>">
											<dl>
												<dt class="icon"></dt>
												<dd>
													<div class="clearfix"><h3><?php echo $vo['post_title']; ?></h3><span class="news-date"><?php echo date('Y-m-d',$vo['create_time']); ?></span>
													</div>
													<p><?php echo $vo['post_excerpt']; ?></p>
												</dd>
											</dl>
										</a>
									</li>
								
<?php endforeach; endif; else: echo "" ;endif; ?>
							</ul>
						</div>
					</div>
				</div>
				<!--重要通知END-->

				<!--案例展示-->
				<div class="bg-grey section">
					<div class="wrapper">
						<div class="htitle">
							<h3>案例展示</h3>
							<h4>Case presentation</h4>
						</div>

						<div class="index-tab-box">
							<ul class="tits tabtit clearfix">
								<?php
$portal_all_sub_categories_data = \app\portal\service\ApiService::allSubCategories(2);
 if(is_array($portal_all_sub_categories_data) || $portal_all_sub_categories_data instanceof \think\Collection || $portal_all_sub_categories_data instanceof \think\Paginator): $i = 0; $__LIST__ = $portal_all_sub_categories_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

									<li class="<?php echo $vo['id']==5?'current-tit' : ''; ?>" ><?php echo $vo['name']; ?></li>
								
<?php endforeach; endif; else: echo "" ;endif; ?>
							</ul>
							<div class="tab-cons">
								<?php
$portal_all_sub_categories_data = \app\portal\service\ApiService::allSubCategories(2);
 if(is_array($portal_all_sub_categories_data) || $portal_all_sub_categories_data instanceof \think\Collection || $portal_all_sub_categories_data instanceof \think\Paginator): $i = 0; $__LIST__ = $portal_all_sub_categories_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vosub): $mod = ($i % 2 );++$i;?>

									<div class="index-book-shows">
										<ul class="to-albums">
											<?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => $where,
    'limit'   => '',
    'order'   => 'post.create_time DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>$vosub['id']
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if(!(empty($vo['more']['thumbnail']) || (($vo['more']['thumbnail'] instanceof \think\Collection || $vo['more']['thumbnail'] instanceof \think\Paginator ) && $vo['more']['thumbnail']->isEmpty()))): ?>
														<li>
															<img class="thunbnail" src="<?php echo cmf_get_image_url($vo['more']['thumbnail']); ?>" alt="<?php echo $vo['post_title']; ?>">
															<!--调用文章的相册-->
															<?php if(!(empty($vo['more']['photos']) || (($vo['more']['photos'] instanceof \think\Collection || $vo['more']['photos'] instanceof \think\Paginator ) && $vo['more']['photos']->isEmpty()))): ?>
																<div class="photo-albums" >
																<?php if(is_array($vo['more']['photos']) || $vo['more']['photos'] instanceof \think\Collection || $vo['more']['photos'] instanceof \think\Paginator): if( count($vo['more']['photos'])==0 ) : echo "" ;else: foreach($vo['more']['photos'] as $key=>$photo): ?>
																		<img data-src="<?php echo cmf_get_image_url($photo['url']); ?>" alt="<?php echo $photo['name']; ?>">
																<?php endforeach; endif; else: echo "" ;endif; ?>
																</div>
															<?php endif; ?>
														</li>
												<?php endif; endforeach; endif; else: echo "" ;endif; ?>
										</ul>
									</div>
								
<?php endforeach; endif; else: echo "" ;endif; ?>
						</div>
					</div>
				</div>
				<!--案例展示END-->

				<!--合作伙伴-->
				<div class="section">
					<div class="wrapper">
						<div class="htitle">
							<h3>合作伙伴</h3>
							<h4>Cooperative partner</h4>
						</div>
						<div class="partner">
							<ul class="partner-list clearfix">
								<li><img src="/themes/paiban/public/assets/images/par1.jpg" alt=""></li>
								<li><img src="/themes/paiban/public/assets/images/par2.jpg" alt=""></li>
								<li><img src="/themes/paiban/public/assets/images/par3.jpg" alt=""></li>
								<li><img src="/themes/paiban/public/assets/images/par4.jpg" alt=""></li>
							</ul>
						</div>

					</div>
				</div>
				<!--合作伙伴END-->

			</div>
		</div>
		<!--主体END-->
		<div class="footer">
	<div class="wrapper section clearfix">
		<div class="footer-left">
			<p>联系我们</p>
			<p class="phone-num">027-87659198</p>
			<p>周一至周五 9：00-18：00</p>
		</div>
		<div class="footer-middle">
			<div class="clearfix">
				<span class="title">友情链接：</span>
				<ul class="friends-link">
					<li><a href="http://www.baokan.net.cn/" target="_blank">湖北报刊编辑经营服务有限公司</a></li>
					<li><a href="http://www.yungeng.org/" target="_blank">云耕创意（武汉）科技有限公司</a></li>
				</ul>
			</div>
			<div class="copyright">
				<p>Copyright &copy;
					<script>document.write(new Date().getFullYear())</script>
					<a href="" target="_blank">baokan.net.cn</a> All Rights Reserved
				</p>
				<a href="http://www.miibeian.gov.cn/publish/query/indexFirst.action" target="_blank">鄂ICP备18001010号</a>
			</div>
		</div>
		<div class="footer-qrcode">
			<p>官方微信公众号</p>
			<div class="thumbnail-w">
				<img src="/themes/paiban/public/assets/images/qrcode.png" alt="湖北报刊编辑经营服务有限公司微信公众号">
			</div>
		</div>
	</div>
</div>

		</div>

		<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
	<script src="/themes/paiban/public/assets/js/jquery.min.js"></script>
	<script src="/themes/paiban/public/assets/layui/layui.js"></script>
	<script src="/themes/paiban/public/assets/js/common.js"></script>
	<script>
	$(function(){



		
	});
	</script>


		<script>
			$(function () {
				var layer = null;
				tabs('.tabtit', 'current-tit', '.tab-cons');
				layui.use(['carousel','layer'], function () {
					layer = layui.layer;
					var carousel = layui.carousel;
					carousel.render({
						elem: '#test2'
						,interval: 1800
						,anim: 'fade'
						,width:'100%'
						,height: '450px'
					});
				});

				//期刊封面展示
				var $album = $(".to-albums li");
				$album.on('click', function () {
					var photots=$(this).find(".photo-albums"),
						img=photots.children();
					var albums={
						"title": "", //相册标题
						"data": [   //相册包含的图片，数组格式

						]
					};
					for(var i=0,leng=img.length;i<leng;i++){
						albums.data.push({
							src:img.eq(i).data('src')
						})
					};
					layer.photos({
						photos: albums
						, anim: 5,
						shade: [0.6, '#000']
					});

				});
			})

			//行业资讯特殊样式
			!function($){
				var infoclass=['icon-fir','icon-sec','icon-third','icon-four'],
					$info=$(".right-news-list li");

				for(var i=0,length=$info.length;i<length;i++){
					$info.eq(i).find('dt').addClass(infoclass[i]);
				}

			}(jQuery);

		</script>
	</body>

</html>